package com.xiaolin.springbootdemo.exception;

import com.xiaolin.springbootdemo.utils.ICommonCode;

/**
 * @ClassName RequestHandleException
 * @Description 请求处理异常
 * @Detail detail
 * @Author MyPC
 * @Date 2021/1/10
 * @Version 1.0
 */
public class RequestHandleException extends RuntimeException{
    private ICommonCode iCommonCode;
    public RequestHandleException(ICommonCode iCommonCode){
        super(iCommonCode.getMsg());
        this.iCommonCode=iCommonCode;
    }
    public RequestHandleException(String msg){
        super(msg);
    }
    public ICommonCode getICommonCode() {
        return iCommonCode;
    }
}
